package com.ruoyi.gather.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.gather.api.domain.ErpProductBrand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient(contextId = "remoteProductCategoryBrandService", value = ServiceNameConstants.GATHER_SERVICE)
public interface RemoteProductCategoryBrandService {
    @GetMapping("/gather/productBrand/selectProductBrandAllList")
    R<Object> selectProductBrandAllList();

    @PostMapping("/gather/productBrand/selectProductBrandInfo")
    R<Object> selectProductBrandInfo(@RequestBody ErpProductBrand productBrandSel);

    @PostMapping("/gather/productBrand/selectProductBrandListInfo")
    R<Object> selectProductBrandListInfo(@RequestBody ErpProductBrand productBrandSel);

    @GetMapping("/gather/productBrand/getProductBrandById/{brandId}")
    R<Object> getProductBrandById(@PathVariable("brandId") Long brandId);
    
    @GetMapping("/gather/collectProductCategory/getCategoryList/{categoryList}")
    R<Object> getCategoryList(@PathVariable("categoryList") String categoryList);

    @GetMapping("/gather/collectProductCategory/getCategoryTreeListForStore/{categoryId}")
    List<Long> getCategoryTreeListForStore(@PathVariable("categoryId") Long categoryId);

    @GetMapping("/aliexpress/category/getCategoryInfoByIdInner/{categoryId}")
    public R<Object> getCategoryInfoByIdInner(@PathVariable("categoryId") Long categoryId);
}
